package org.speed.mvc.service;

import java.util.List;

import org.speed.mvc.service.handler.IHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

	
	@Autowired
	private List<IHandler> handlers;
	
	public void exc() {
		
		System.out.println("start");
		
		
		handlers.forEach(handler -> {
			
			handler.exc();
			
		});
		
		
		System.out.println("end");
		
	}
	
}
